<div class="admin-content">
  <div class="am-cf am-padding">
    <div class="am-fl am-cf"> <strong class="am-text-primary am-text-lg">用户公告修改</strong>
      /
      <small>Personal information</small>
    </div>
  </div>

  <hr/>

  <div class="am-g">

    <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8"></div>

    <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
      <form class="am-form am-form-horizontal" action="<?=site_url('comment/update_env')?>" method="post" id="my_form">
        <div class="am-form-group">
          <label for="user-name" class="am-u-sm-3 am-form-label">标题 / Title</label>
          <div class="am-u-sm-9">
            <input type="text" id="text" placeholder="公告标题 / Title" name="title" value="<?=$res['title']?>">
          </div>
        </div>

        <div class="am-form-group">
          <label for="user-weibo" class="am-u-sm-3 am-form-label">显示状态 / Status</label>
          <div class="am-u-sm-9">
            <div class="am-btn-group" data-am-button>
              <label class="am-btn am-btn-default am-btn-xs <?=$res['status'] == 2 ? 'am-active' : ''?>">
                <input type="radio" name="status" id="option1" <?=$res['status'] == 2 ? 'checked="true"' : ''?> value="2"> 默认
              </label>
              <label class="am-btn am-btn-default am-btn-xs <?=$res['status'] == 1 ? 'am-active' : ''?>">
                <input type="radio" name="status" id="option2" <?=$res['status'] == 1 ? 'checked="true"' : ''?> value="1"> 首页展示
              </label>
            </div>
          </div>
        </div>

        <div class="am-form-group">
          <label for="user-intro" class="am-u-sm-3 am-form-label">内容 / Intro</label>
          <div class="am-u-sm-9">
            <textarea class="" rows="5" id="user-intro" placeholder="输入公告内容" name="content"><?=$res['content']?></textarea>
            <small>250字以内</small>
          </div>
        </div>

        <div class="am-form-group">
          <div class="am-u-sm-9 am-u-sm-push-3" id="msg">
          </div>
        </div>
        <input type="hidden" name="cid" value="<?=$res['id']?>">
        <div class="am-form-group">
          <div class="am-u-sm-9 am-u-sm-push-3">
            <button type="submit" class="am-btn am-btn-primary">保存修改</button>
            <a class="am-btn am-btn-default" onclick="javascript:history.back(-1);">返回上一页</a>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>